import cv2 as cv
import numpy as np

from 显示图片 import my_img_show

image = cv.imread("hk.jpg")
my_img_show("piece",image[0:1000, 0:1000])

cur_img = image.copy()

cur_img[:, :, 1] = 0
cur_img[:, :, 2] = 0
my_img_show(cur_img)

b, g, r = cv.split(image)
zero_shape = np.zeros(image.shape[:2]).astype("uint8")
imager = cv.merge([b, zero_shape, zero_shape])

my_img_show(cur_img)